package org.ch03.hw.demo05;

/**
 * @author ZJL
 * @date 2025-03-26
 */
public class GenericTest02{
    public static <T> T divClass(Class<T> beanClass) {
        try {
            return beanClass.getConstructor().newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
